
package framework.controller;
import framework.model.Account;
import framework.model.Entry;

public class Withdraw implements ITransaction {
    private Account account;
    private Entry entry;
    //
    public Withdraw(Account acc, Entry ent) {
        this.account = acc;
        this.entry = ent;
    }

    @Override
    public void execute() {
        account.withdraw(entry);
    }
}